package com.rice.study.mapper;

import com.rice.study.dao.Tester;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CachePut;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;


@CacheConfig(cacheNames = "users")
public interface TestMapper {

    Tester getById(@Param("id")Integer id);

    List<Tester> getAll();

    int batchSave(@Param("testerList") List<Tester> testers);

    int save(@Param("tester")Tester testers);
}
